package com.cg.slms.domain;

import java.sql.Date;
import java.sql.Timestamp;

import org.hibernate.validator.constraints.Length;

/**
 * @apiNote 进货
 * @author GSC
 *
 */
public class Stockin {
	
	private Integer id;//序号
	private Merchandise merchandise;//商品表
	private Client client;//客户表
	private Employee employee;//员工表
	@Length(max=3,min=1,message="进货单编号长度在1-3之间")
	private String code;//进货单编号
	private int amount;//进货数量
	private float price;//进货单价
	private float money;//进货总额
	private String stockindate;//进货日期
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Merchandise getMerchandise() {
		return merchandise;
	}
	public void setMerchandise(Merchandise merchandise) {
		this.merchandise = merchandise;
	}
	public Client getClient() {
		return client;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public float getMoney() {
		return money;
	}
	public void setMoney(float money) {
		this.money = money;
	}
	public String getStockindate() {
		return stockindate;
	}
	public void setStockindate(String stockindate) {
		this.stockindate = stockindate;
	}


}
